package fr.gedos.ged.analyser.recognition.adapter.interfaces;

import java.awt.Rectangle;
import java.io.File;
import java.io.IOException;

import fr.gedos.ged.analyser.recognition.adapter.exceptions.PictureNotWellWritingException;


/**
 * This class define method to extract a sub picture from one picture.
 * @author rastafire
 *
 */
public interface ImageSplitter {
    /**
     * Extract a sub picture from a picture.
     * 
     * @param fileToProcess
     *            - The picture's file
     * @param area
     *            - The position of sub area
     * @return - A file we create, contains only subarea
     * @throws IOException
     * @throws PictureNotWellWritingException
     */
    public File getSubPicture(File fileToProcess, Rectangle area) throws IOException,
            PictureNotWellWritingException;
}
